<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:include page="/includes/head.jsp" />

<div id="page">
	<div id="header"></div>

	<div id="mainarea">
		<div id="sidebar">
			<div id="headerleft">
				<h1>
					<a href="<c:url value="/home.jsp" />"><fmt:message
							key="time_pesquisa" /> </a>
				</h1>
			</div>
			<div id="menulinks">
				<a href="<c:url value="/home.jsp" />"><fmt:message key="home" />
				</a> <a href="<c:url value="/membro/index" />"><fmt:message	key="membros" /> </a> 
						<a href="<c:url value="/publicacao/index" />"><fmt:message key="publicacoes" /> </a>
						#if($linhaPesquisa)
						<a href="<c:url value="/linhaPesquisa/index" />"><fmt:message key="linha" /> </a>
						#end
						<a class="active" href="<c:url value="/visitante/index" />"><fmt:message key="visitante" /> </a>
						<a href="<c:url value="/contato.jsp" />"><fmt:message key="contato" /> </a>
			</div>
		</div>

		<div id="contentarea">

			<h2>
				<fmt:message key="visitante" />
			</h2>
			<table align=left>
				<tr>
					<td>

						<table align=left>
							<tr>
								<td><fmt:message key="nome" />: ${visitante.nome}</td>
							</tr>
							<tr>
								<td><fmt:message key="universidadeProveniente" />: ${visitante.universidadeProveniente}</td>
							</tr>
							<tr>
								<td><fmt:message key="dataVisita" />: ${visitante.dataVisita}</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table align=center>
							<tr>
								<td>
									<form name="formRemover" method="post"
										action='<c:url value="/visitante/remove"/>'>
										<input type="hidden" name="visitante.id" value="${visitante.id}">
										<input type="hidden" name="msgExclusao"
											value="<fmt:message key="msg_exclusao_visitante" />">
										<input value="<fmt:message key="button_remover" />"
											onclick="confirmarRemocao();" type="button">
									</form>
								</td>
							</tr>
						</table></td>
				</tr>
			</table>
		</div>
		<script type="text/javascript">
			function confirmarRemocao() {
				if (confirm(document.formRemover.msgExclusao.value)) {
					document.formRemover.submit();
				}
			}
		</script>


		<jsp:include page="/includes/tail.jsp" />